package loop;

public class ContinueDemo {

    public static void main(String[] args) {
        for (int i = 1; i <= 40; i++) {

            if (i == 10) {
                System.out.println("电话响了，我去接个电话！");
                continue; /*结束本次循环，开始下次循环，continue后面语句不执行了。*/
            }
            System.out.println("跑完第" + i + "圈了。");
        }
        System.out.println("今天的训练到此结束。");
    }
}
